3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage fill styles.
You can use the Q3FillStyle_New function to create a new fill style object.
TQ3StyleObject Q3FillStyle_New (TQ3FillStyle fillStyle);
The Q3FillStyle_New function returns, as its function result, a new style object having the fill style specified by the fillStyle parameter. The fillStyle parameter should be one of these values:
kQ3FillStyleFilled
kQ3FillStyleEdges
kQ3FillStylePoints
If a new style object could not be created, Q3FillStyle_New returns the value NULL .
To change the current fill style, you must actually draw the style object. You can call Q3Style_Submit to draw the style in retained mode or Q3FillStyle_Submit (described next) to draw the style in immediate mode.
See "Fill Styles" for a description of the available fill styles.
You can use the Q3FillStyle_Submit function to submit a fill style in immediate mode.
TQ3Status Q3FillStyle_Submit (
TQ3FillStyle fillStyle,
TQ3ViewObject view);
You can use the Q3FillStyle_Get function to get the fill style value of a fill style.
TQ3Status Q3FillStyle_Get (
TQ3StyleObject styleObject,
TQ3FillStyle *fillStyle);
You can use the Q3FillStyle_Set function to set the fill style value of a fill style.
TQ3Status Q3FillStyle_Set (
TQ3StyleObject styleObject,
TQ3FillStyle fillStyle);
Previous | QD3D Book | Overview | Chapter Contents | Next |